package com.uuuo.animations.transitions;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.transition.Fade;
import android.transition.TransitionInflater;

import com.uuuo.animations.R;

public class TransitionsB extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_transitions_b);
        setupWindowAnimations();
    }

    private void setupWindowAnimations() {
        Fade fade = (Fade)TransitionInflater.from(this).inflateTransition(R.transition.activity_fade);
        getWindow().setEnterTransition(fade);
    }
}
